/*
 * Copyright (C) 2018 The Asiainfo-Ability Authors
 *
 *      Licensed under the Apache License, Version 2.0 (the "License");
 *      you may not use this file except in compliance with the License.
 *      You may obtain a copy of the License at
 *
 *          http://www.apache.org/licenses/LICENSE-2.0
 *
 *      Unless required by applicable law or agreed to in writing, software
 *      distributed under the License is distributed on an "AS IS" BASIS,
 *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *      See the License for the specific language governing permissions and
 *      limitations under the License.
 */

package org.asiainfo.ability.provider.service;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.asiainfo.ability.provider.annotation.AbilityFace;
import org.asiainfo.ability.provider.utils.ClassScaner;
import org.asiainfo.ability.provider.utils.ExceptionUtils;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author: visen
 * @Date: 2018/1/18
 * @Description:
 */

public class AbilityLoader {
    public static final Logger logger = LogManager.getLogger(AbilityLoader.class);


    public void loadApiProvider(String basePackage) {

        List<Class<?>> providers = null;
        try {
            providers = ClassScaner.scanPackage(basePackage, true, RequestMapping.class);
        } catch (Exception e) {
            ExceptionUtils.logTrace(logger, e);
        }


    }

}
